ST1D = [1    4   532;
    2   6  532;
    3   10  544;
    4   12  649;
    5   16  649;
    6   16  1063]

ST2D = [1   9   713;
    2   20  10443;
    3   14  11804;
    4   21  10663;  
    5   32  16280;
    6   62  10560]


iter = ST1D(:,1);

node = zeros(size(iter, 1), 5);
node(:,1) = ST1D(:,2);
node(:,2) = ST2D(:,2);

time = zeros(size(iter, 1), 5);
time(:,1) = ST1D(:,3);
time(:,2) = ST2D(:,3);

figure;
hold on;
xlabel('Horizon', 'FontSize', 16);
ylabel('Number of Nodes', 'FontSize', 16);
title('Power Plant', 'FontSize', 16);
set(gca,'XTick',1:1:6);
% axes('FontSize', 16);
plot(1:6, node(:,1), '--r*');
plot(1:6, node(:,2), '-bx');

legend('1 state - 1 observation','2 state - 2 observation', 2, 'FontSize', 16);
hold off;


%%

figure;
semilogy(iter,time(:,1), '--r*');
hold on;
semilogy(iter,time(:,2), '-bo');
%semilogy(iter(1:3),E(:,2), '-.ks');
xlabel('Horizon', 'FontSize', 16);
ylabel('Time(ms)', 'FontSize', 16);
title('Power Plant', 'FontSize', 16);
set(gca,'XTick',1:1:6);
legend('1 state - 1 observation', '2 states - 2 observation' ,2);
hold off;